package com.my.consumer.feign;

import com.my.consumer.bean.User;
import com.my.consumer.config.FeignConfig;
import com.my.consumer.feign.impl.UserFeignFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author YangYunbo
 * @version 2021-07-08
 */
@FeignClient(name = "product", configuration = FeignConfig.class, fallback = UserFeignFactory.class)
public interface UserFeignClient {

    @GetMapping("/user/get")
    User get();
}
